public class Solution {
    public static void main(String[] args) {
        // write your code here

        String number = number();
        System.out.println(number);

    }

    public static String number(){
        int[] hongQiu = new int[6];
        int lanQiu = -1;
        int hongQiuCount = 0;
        int lanQiuCount = 0;
        String number ="";

        while(hongQiuCount+lanQiuCount!=7){
            int chooseBall = (int)(Math.random()*10);
            if(chooseBall>=0&&chooseBall<=4&&hongQiuCount<=6){
                //随机生成红球号码
                int suiJiHongQiuShu = (int)(Math.random()*33+1);

                        boolean flag = true;

                        for (int i=0;i<hongQiu.length;i++) {
                                if (hongQiu[i] == suiJiHongQiuShu) {
                                    flag = false;
                                    break;
                                }
                            }
                        if (flag!=false){
                            hongQiu[hongQiuCount]=suiJiHongQiuShu;
                            number=number+"红球"+hongQiu[hongQiuCount];
                            hongQiuCount++;
                        }


            }else if(lanQiuCount!=1){
                lanQiu = (int)(Math.random()*16+1);
                number=number+"蓝球"+lanQiu;
                lanQiuCount++;
            }
        }
        return number;
    }
}
